package cn.tedu.antconlonysever.contract.dao.persist.repository;

import cn.tedu.antcolonycommons.pojo.vo.PageData;
import cn.tedu.antconlonysever.contract.pojo.entity.Linkman;
import cn.tedu.antconlonysever.contract.pojo.vo.LinkmanListVO;
import cn.tedu.antconlonysever.contract.pojo.vo.LinkmanStandardVO;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

public interface ILinkmanRepository {
    int insert(Linkman linkman);
    int insertBatch(List<Linkman> linkmanList);
    int deleteById(Long id);
    int deleteByIds(Collection<Long> idList);
    int update(Linkman linkman);
    int count();
    int countCusId(Long cusId);
    int contactCusIdNotId(@Param("id")Long id, @Param("cus_id") Long cusId);
    LinkmanStandardVO getStandardById(Long id);
    PageData<LinkmanListVO> list(Integer pageNum, Integer pageSize);
}
